<?php

class myClass {
    /**
     * @return myClass
     */
    static function getInstance () {
        
    }
    
    /**
     *
     * @param type $param
     * @return myClass
     */
    function test($param) {
        
    }
    
}

$foo = myClass::getInstance()^
?>

